package com.microservice.feign.controller;

import com.microservice.feign.service.IFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FeignController {

    @Autowired
    IFeignService feignService;

    @GetMapping("/hi/{name}")
    public String hi(@PathVariable String name) {
        return feignService.hi(name);
    }
}
